/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.WebIDE.ejb.sessions;

import java.util.List;
import javax.ejb.Remote;
import javax.persistence.EntityManager;
import org.WebIDE.ejb.entities.Groups;
import org.WebIDE.ejb.sessions.exceptions.*;

/**
 *
 * @author huy
 */
@Remote
public interface GroupsFacadeRemote {

    public void create(Groups groups) throws PreexistingEntityException, RollbackFailureException, Exception ;

    public void edit(Groups groups) throws NonexistentEntityException, RollbackFailureException, Exception;

    void remove(Groups groups);

    Groups find(Object id);

    List<Groups> findAll();
    public int getGroupsCount();

    public EntityManager getEntityManager();

    public Groups findGroups(String id);

    public List<Groups> findGroupsEntities(int maxResults, int firstResult);

    public List<Groups> findGroupsEntities();

    public void destroy(String id) throws NonexistentEntityException, RollbackFailureException, Exception;
}
